﻿
@using Abp.Extensions
@using Abp.Application.Services.Dto
@using KDS.Mes.Web.Models.Common.Modals
@using KDS.Mes.Web.Models.SeatPositions

@model CreateOrEditSeatPositionModalViewModel

@* 初始化头部 *@
@Html.Partial("~/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("EditSeatPosition") + ": " + Model.SeatPosition.SeatPositionName) : L("CreateSeatPosition")))


<!--html代码区域-->
<div class="modal-body">
    <form name="seatPositionInformationsForm" role="form" novalidate class="form-validation">
        <input type="hidden" name="Id" value="@Model.SeatPosition.Id" />
        <div >


            <div hidden="hidden">
                @if (Model.IsEditMode)
            {
                    <input type="hidden" name="Id" value="@Model.SeatPosition.Id" />
                }
            </div>


            <div class="form-group">
                <label>@L("SeatPositionName")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.SeatPosition.SeatPositionName.IsNullOrEmpty() ? "" : " edited")" type="text" name="SeatPositionName" value="@Model.SeatPosition.SeatPositionName" required maxlength="20" />
            </div>



            <div class="form-group ">
                <label>@L("SeatPositionCode")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.SeatPosition.SeatPositionCode.IsNullOrEmpty() ? "" : " edited")" type="text" name="SeatPositionCode" value="@Model.SeatPosition.SeatPositionCode" required maxlength="20" />
            </div>


        </div>
    </form>
</div>
@Html.Partial("~/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")

